package com.itheima.d06_springframework.service;

import com.itheima.d06_springframework.annotation.Autowired;
import com.itheima.d06_springframework.annotation.Service;
import com.itheima.d06_springframework.dao.StudentDao;

/**
 * 实现业务逻辑
 */
@Service
public class StudentService {

    @Autowired
    StudentDao studentDao /*= new StudentDao()*/;

    //实现客户登录请求的方法
    public void checkLogin(){
        System.out.println("Service正在实现登录...");
        studentDao.selectByUsernameAndPassword();
    }
}
